#include "campaign.h"
#include "skill.h"
#include "feat.h"
#include "specialability.h"
#include "characterclass.h"


#include <QDebug>
#include <QTimer>

Campaign::Campaign(QObject *parent) :
    DTwentyItem(parent)
{
    qRegisterMetaType<Skills*>();
    qRegisterMetaType<Feats*>();
    qRegisterMetaType<SpecialAbilities*>();
    qRegisterMetaType<CharacterClasses*>();

    QTimer::singleShot(0, this, SLOT(onInitChildren()));
}

Campaign::Campaign(const Campaign &other) :
    DTwentyItem(other)
{
}

int Campaign::type() const
{
    return qMetaTypeId<Campaign*>();
}

bool Campaign::removable() const
{
    return false;
}

void Campaign::onInitChildren()
{
    initChild<Skills>("Skills");
    initChild<Feats>("Feats");
    initChild<SpecialAbilities>("Special Abilities");
    initChild<CharacterClasses>("Character Classes");
}

